<template>
	<view>
		<view class="movable-area">
			<image src="https://tb.wuyouzhuan888.com/applet-icon/ico_totop.png"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				x: 320, //x坐标
				y: 520, //y坐标
			}
		}
	}
</script>

<style lang="scss">
	$all_width: 96rpx;
	$all_height: 96rpx;

	.movable-area {
		width: 80rpx;
		height: 80rpx;
		background-color: #8340F1;
		border-radius: 50%;
		top: 80%;
		right: 5%;
		position: fixed;
		z-index: 200;

		image {
			margin-left: 40rpx;
			margin-top: 40rpx;
			transform: translate(-50%, -50%);
			width: 50rpx;
			height: 50rpx;
		}
	}
</style>